package com.cjb.basecouldcomsumer.consumer.service;

import com.netflix.discovery.converters.Auto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class ConsumerService {

    @Autowired
    private RestTemplate restTemplate;


    public Map<String, List<String>> consumer(){
        return restTemplate.getForObject("http://cjbProvider/", HashMap.class);
    }






}
